package cn.edu.nuc.bre.entity;

import java.io.Serializable;

/**
 * 事务明细
 * @author 王凯
 *
 */
public class TransDetail implements Serializable{
	/**
	 * 序列化id
	 */
	private static final long serialVersionUID = 1L;

	/**
	 * 事务明细id
	 */
    private Integer tdid;

    /**
     * 事务类型id
     */
    private Integer ttypeid;
    
    /**
     * 事务类型名称
     */
    private String ttname;

    /**
     * 服务保障部门id
     */
    private String ensuredeptid;

    /**
     * 事务明细名称
     */
    private String tdname;

    /**
     * 事务保障级别
     */
    private Integer dlevel;

    /**
     * 类型
     */
    private Integer tclass;

    /**
     * 外包商
     */
    private String expackage;

    /**
     * 初审时限
     */
    private Integer examtime;

    /**
     * 服务响应时限
     */
    private Integer servicetime;

    /**
     * 抵达现场时间
     */
    private Integer scenetime;

    /**
     * 服务解决时间
     */
    private Integer endtime;

    /**
     * 备注
     */
    private String note;

    /**
     * 状态（是否显示）
     */
    private Integer tdstate;

    public Integer getTdid() {
        return tdid;
    }

    public void setTdid(Integer tdid) {
        this.tdid = tdid;
    }

    public Integer getTtypeid() {
        return ttypeid;
    }

    public void setTtypeid(Integer ttypeid) {
        this.ttypeid = ttypeid;
    }

    public String getEnsuredeptid() {
        return ensuredeptid;
    }

    public void setEnsuredeptid(String ensuredeptid) {
        this.ensuredeptid = ensuredeptid;
    }

    public String getTdname() {
        return tdname;
    }

    public void setTdname(String tdname) {
        this.tdname = tdname;
    }

    public Integer getDlevel() {
        return dlevel;
    }

    public void setDlevel(Integer dlevel) {
        this.dlevel = dlevel;
    }

    public Integer getTclass() {
        return tclass;
    }

    public void setTclass(Integer tclass) {
        this.tclass = tclass;
    }

    public String getExpackage() {
        return expackage;
    }

    public void setExpackage(String expackage) {
        this.expackage = expackage;
    }

    public Integer getExamtime() {
        return examtime;
    }

    public void setExamtime(Integer examtime) {
        this.examtime = examtime;
    }

    public Integer getServicetime() {
        return servicetime;
    }

    public void setServicetime(Integer servicetime) {
        this.servicetime = servicetime;
    }

    public Integer getScenetime() {
        return scenetime;
    }

    public void setScenetime(Integer scenetime) {
        this.scenetime = scenetime;
    }

    public Integer getEndtime() {
        return endtime;
    }

    public void setEndtime(Integer endtime) {
        this.endtime = endtime;
    }

    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note;
    }

    public Integer getTdstate() {
        return tdstate;
    }

    public void setTdstate(Integer tdstate) {
        this.tdstate = tdstate;
    }

	public String getTtname() {
		return ttname;
	}

	public void setTtname(String ttname) {
		this.ttname = ttname;
	}

	@Override
	public String toString() {
		return "事务明细 [明细id=" + tdid 
				+ ", 事务类型id=" + ttypeid 
				+ ", 事务类型名称=" + ttname
				+ ", 保障部门id=" + ensuredeptid 
				+ ", 事务明细名称=" + tdname 
				+ ", 事务保障级别=" + dlevel 
				+ ", 类型=" + tclass 
				+ ", 外包商=" + expackage 
				+ ", 初审时限=" + examtime 
				+ ", 服务响应时限=" + servicetime 
				+ ", 抵达现场时间=" + scenetime 
				+ ", 服务解决时间=" + endtime
				+ ", 备注=" + note 
				+ ", 状态（是否显示）=" + tdstate 
				+ "]";
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((tdid == null) ? 0 : tdid.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		TransDetail other = (TransDetail) obj;
		if (tdid == null) {
			if (other.tdid != null)
				return false;
		} else if (!tdid.equals(other.tdid))
			return false;
		return true;
	}

}